package club.caihappy.Condition;

import club.caihappy.pojo.Car;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;

/**
 * Created by DELL on 2021/10/5
 **/
@ComponentScan("club.caihappy.pojo")
@Configuration
public class MainConfigOfLifeCycle {

//    @Bean(initMethod = "init",destroyMethod = "destory")
    public Car car() {
        return new Car();
    }
}
